/** @type {import('next').NextConfig} */
const withLess = require("next-with-less")
const nextConfig = {
    productionBrowserSourceMaps: true,
    swcMinify: true,
    // exportPathMap: async function(
    //     defaultPathMap,
    //     { dev, dir, outDir, distDir, buildId }
    // ){
    //     return {
    //         '/':{page:'/index'}
    //     }
    // },
    images: { //此处不设置生成 ssg 会报错 
        loader: 'akamai',
        path: '',
    },
    experimental:{
        images: {
            unoptimized: true,
        }
    },
    basePath: process.env.NODE_ENV === 'development' ? '' : '/app'
}

module.exports = nextConfig
